var pageUrl = $('#PageNation').attr('url');
var pageParams = $('#PageNation').attr('params');
$('#PageNation').pagination({
  totalData: totalNum,
  pageCount:sessionStorage.getItem("pageCount"),
  showData: 10,
  coping: true,
  homePage: '首页',
  endPage: '末页',
  prevContent: '上页',
  nextContent: '下页',
  callback: function (api) {
    viewModel.List([])
    pageNum = api.getCurrent() - 1
    
    function page(data){
      if(data){
          viewModel.List(data.obj.content);
      }
  	}
    ajaxGet(pageUrl + pageNum + '/' + pageSize + '/' + pageParams,null,page)   
  }
});